#include <stdio.h>
void fun1()
{
  int a, b, c;
  scanf("%d%d%d", &a, &b, &c);
  if ((a + b > c || a - b < c) && a > 0 && b > 0 && c > 0)
  {
    printf("Yes\n");
  }
  else
  {
    printf("No\n");
  }
}
void fun2()
{
  int y;
  scanf("%d", &y);
  if (y % 4 == 0 && y % 100 != 0 || y % 400 == 0)
  {
    printf("Yes\n");
  }
  else
  {
    printf("No\n");
  }
}
void fun3(int *a, int *b)
{
  int t = *a;
  *a = *b;
  *b = t;
}
void fun4()
{
  int a,b,c;
  scanf("%d%d%d",&a,&b,&c);
  if(a>b) fun3(&a,&b);
  if(a>c) fun3(&a,&c);
  if(b>c) fun3(&b,&c);
  printf("%d -> %d -> %d\n",a,b,c);
}
int main()
{
  fun4();
  return 0;
}